const lesama = require('./lesama-tools')

console.log(lesama.formatDate(new Date()))

const htmlStr = '<div style="color: yellow;"><p>hello</p><span>&nbsp;</span></div>'

console.log(lesama.htmlEscape(htmlStr))

const str = '&lt;div style=&quot;color: yellow;&quot;&gt;&lt;p&gt;hello&lt;/p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;'

console.log(lesama.htmlUnEscape(str))